package com.probox.common.core.enums;

/**
 * 客户等级权益
 * @author liuhj
 */
public enum CustomerOperationGiveCouponEnum {


    couponName("couponName","券名称"),
    couponType("couponType","券类型"),
    gainTime("gainTime","获取时间"),
    expiresTime("expiresTime","过期日期"),
    couponNumber("couponNumber","优惠券数量");


    private CustomerOperationGiveCouponEnum(String k, String v) {
        this.setKey(k);
        this.setValue(v);
    }

    public static String getNameByKey(String key) {
        String rst = "";
        for(CustomerOperationGiveCouponEnum oe: CustomerOperationGiveCouponEnum.values()) {
            if (oe.getKey().equals(key)) {
                rst = oe.getValue();
            }
        }
        return rst;
    }

    private String key;
    private String value;

    public String getKey() {
        return key;
    }
    public void setKey(String key) {
        this.key = key;
    }
    public String getValue() {
        return value;
    }
    public void setValue(String value) {
        this.value = value;
    }
}
